package com.iflytek.iot.redis.sharding.tools.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @author zurun
 * @date 2020/3/3 11:27:49
 */
@Configuration
@ConfigurationProperties("iflytek.redis.sharding")
@ComponentScan("com.iflytek.iot.redis.sharding.tools")
public class ShardingProperties {
    private List<ShardingProperty> collection;

    public List<ShardingProperty> getCollection() {
        return collection;
    }

    public ShardingProperties setCollection(List<ShardingProperty> collection) {
        this.collection = collection;
        return this;
    }
}
